Recently I crashed Ubuntu on my laptop and had to reset everything up. This week my new desktop in my workplace needed to be set as well. It is a good idea to wrap my personal flavours as a blog for future reference and it might help someone else.
More efficient with bash aliases
Better looking with Numix and la capitaine icons
Bigger fonts make TTY look better
Configuring my favorite editor is usually the first thing I do.
1. Install the Vim version you like.
sudo apt install vim-gnome
2. Check if your favorite language is supported. This command will display all the included features.
vim --version
3. Use Vundle to manage plugins. It is very easy to setup using this one liner.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
4. Configure the .vimrc file, which defines your personalized vim and makes vundle work properly
set nocompatible " required
filetype off " required
filetype plugin on
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
set shellslash
"set number
set grepprg=grep\ -nH\ $*
set backspace=indent,eol,start
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Bundle 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'jiangmiao/auto-pairs'
Plugin 'nvie/vim-flake8'
Plugin 'jnurmine/Zenburn'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'davidhalter/jedi-vim'
Plugin 'ervandew/supertab'
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
au BufNewFile,BufRead *.py:
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
au BufNewFile,BufRead *.js, *.html, *.css:
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
au BufNewFile,BufRead,BufFilePre *.md set filetype=markdown
"start nerdtree by default
autocmd vimenter * NERDTree
"jump to main window
autocmd Vimenter * wincmd p
"let g:ycm_autoclose_preview_window_after_completion=1
"map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
let g:jedi#auto_initialization = 1
let g:jedi#auto_vim_configuration = 1
let g:tex_flavor='latex'
let python_highlight_all=1
syntax on
5. I like Vim latex-suite very much, so I need configure it as well.
In [ ]: